package com.aitemv.utils;

import java.io.IOException;
import java.util.PropertyResourceBundle;

/**
 * 对properties文件的读取操作
 * 
 * @author lyvee
 */
public class PropertiesUtil {
	private PropertiesUtil(){};//不允许实例化
	public static String load(String key) throws IOException {
		 PropertyResourceBundle resourceBundle = (PropertyResourceBundle) PropertyResourceBundle
		    .getBundle("sql");
		/*通过key获取文件中的sql**/
		return resourceBundle.getString(key);
	}
}
